<script>
function goto(obj){

	var pagenum = obj.value;
	var keyword = document.getElementById("title").value;
	//alert(keyword);
	
	 if ((isNaN(pagenum)) || (pagenum.indexOf(".")!=-1) || (pagenum.indexOf("-")!=-1)){
        alert("输入的页码有误。");
        return false;    
	}
	if(pagenum>${model.totalPageNum}){
		pagenum = ${model.totalPageNum};
	}
	if(pagenum<1){
		pagenum =1;
	}
	
	window.location.href="${requestUrl}?page="+pagenum+"&keyword="+keyword+"&catId=${catId?if_exists}";
}
</script>